package springboot.demo.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Service
@Component
@FeignClient(value = "Provider")
public interface Provider {

    @GetMapping("/v1/novelName/{id}")
    String queryNovelById(@PathVariable("id") Integer id);
}
